﻿<?php $this->load->view('layout/header'); ?>
    <div id="container">
        <!--查询表单开始-->
        <div id="DivQuery">
            <div id="floatBoxBg" style="filter: alpha(opacity=0); opacity: 0;">
            </div>
            <div id="floatBox" class="floatBox">
                <div id="drag" class="title" onmousedown="DragDialog()">
                    <h4>
                        查询</h4>
                    <span>关闭</span></div>
                <div class="content">
                    <form action="<?php echo b_url('config/syslimit')?>" method="post">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_query">
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">权限名称：</td>
                            <td><input name="limitname" type="text" id="txtLimitName" /></td>
                            <td style="width: 15%" align="right">权限标识：</td>
                            <td><input name="limitvalue" type="text" id="txtLimitValue" /></td>
                        </tr>
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">状态：</td>
                            <td colspan="3">
                                <select name="isclose" id="drpIsClose">
                                    <option selected="selected" value="">不限</option>
                                    <option value="0">开放</option>
                                    <option value="1">关闭</option>
                                </select>
                            </td>
                        </tr>
                        <tr class="table_query_btn">
                            <td align="right" style="width: 15%"></td>
                            <td>
                                <input type="submit" name="btnQuery" value="查询" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnQuery&quot;, &quot;&quot;, false, &quot;&quot;, &quot;SysLimit.aspx&quot;, false, false))" id="btnQuery" />
                                <input type="button" value="返回" onclick="javascript:HiddenSearchDialog();" />
                            </td>
                            <td align="right" style="width: 15%"></td>
                            <td></td>
                        </tr>
                    </table>
                    </form>
                </div>
            </div>
        </div>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_op">
            <tr>
                <td>
                    操作选项：
                    <a href="<?php echo b_url('config/syslimit_add')?>">添加权限</a>
                    <a onclick="javascript:return checkEdit(this);" name="syslimitid" href="javascript:;)" src="<?php echo b_url('config/syslimit_add/');?>">修改权限</a>
                    <a onclick="javascript:return checkDel(this);" name="syslimitid" href="javascript:;)" src="<?php echo b_url('config/delete_info/syslimit/syslimitid/syslimit/')?>">删除权限</a>
                    <a onclick="javascript:return checkOperate(this);" name="syslimitid" href="javascript:;" src="<?php echo b_url('config/edit_close/syslimit/syslimitid/syslimit/0/')?>">批量开放</a>
                    <a onclick="javascript:return checkOperate(this);" name="syslimitid" href="javascript:;" src="<?php echo b_url('config/edit_close/syslimit/syslimitid/syslimit/1/')?>">批量关闭</a>
                    <a href="javascript:SearchDialog()">查询权限</a>
                </td>
            </tr>
        </table>
        <!--操作选项结束-->
        <!--列表开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list" id="TbList">
            <tr class="table_list_title">
                <td style="width: 2%">
                    <input type="checkbox" name="checkbox" value="checkbox" onclick="javascript:checkAll(this,'syslimitid')" />
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=SysLimitID&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    编号
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LimitName&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    权限名称
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LimitValue&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    权限标识
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=Comment&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    备注
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=ListID&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    排序号<img src="/static/bk/images/down.gif"/>
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AdminID&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    创建人
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    创建时间
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=IsClose&AscDesc=desc&txtLimitName=&txtLimitValue=&txtComment=&txtListID=&txtAdminID=&txtAddTime=&drpIsClose=&page=1')" title="点击排序">
                    状态
                </td>
            </tr>
                <?php foreach($list as $k=>$v) : ?>
                    <tr class="table_list_row_normal">
                        <td style="width: 2%">
                            <input name="syslimitid" type="checkbox"  value="<?php echo $v['syslimitid']?>" onclick="javascript:TrColor2('SysLimitID',1)" />
                        </td>
                        <td style="width: 10%">
                            <?php echo $v['syslimitid']?>
                        </td>
                        <td style="width: 10%">
                            <?php echo $v['limitname']?>
                        </td>
                        <td style="width: 10%">
                            <?php echo $v['limitvalue']?>
                        </td>
                        <td style="width: 10%">
                            <?php echo $v['comment']?>
                        </td>
                        <td style="width: 10%">
                            <?php echo $v['listid']?>
                        </td>
                        <td style="width: 10%">
                            <?php echo $v['adminname']?>
                        </td>
                        <td style="width: 10%">
                            <?php echo $v['addtime']?>
                        </td>
                        <td style="width: 10%">
                            <?php 
                                if($v['isclose'] == 0){
                                    echo '开放';
                                }elseif($v['isclose'] == 1){
                                    echo '<font color="red">关闭</font>';
                                }
                            ?>
                        </td>
                    </tr>
                <?php endforeach ; ?>
        </table>
        <!--列表结束-->
        <!--分页开始-->
        <?php $pagination->show();?>
        <!--分页结束-->
    </div>
<script src="/static/bk/js/table.js" type="text/javascript"></script>
<?php $this->load->view('layout/footer'); ?>

